import request from '@/utils/request'

// 查询车辆出场记录列表
export function listLeavelog(query) {
  return request({
    url: '/system/leavelog/list',
    method: 'get',
    params: query
  })
}

// 查询车辆出场记录详细
export function getLeavelog(id) {
  return request({
    url: '/system/leavelog/' + id,
    method: 'get'
  })
}

// 新增车辆出场记录
export function addLeavelog(data) {
  return request({
    url: '/system/leavelog',
    method: 'post',
    data: data
  })
}

// 修改车辆出场记录
export function updateLeavelog(data) {
  return request({
    url: '/system/leavelog',
    method: 'put',
    data: data
  })
}

// 删除车辆出场记录
export function delLeavelog(id) {
  return request({
    url: '/system/leavelog/' + id,
    method: 'delete'
  })
}
